<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
    <style>
        body > div > form > table {
            margin: 100px auto;
            text-align: center;
        }
    </style>
</head>
<body>
<div>
    <form th:action="@{/emp}" method="post">
        <input type="hidden" name="_method" value="put">
        <table border="1" width="300">
            <tr>
                <td>编号:</td>
                <td>
                    <input type="text" name="id" readonly th:value="${#request.getAttribute('emp').id}">
                </td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td>
                    <input type="text" name="name" th:value="${#request.getAttribute('emp').name}">
                </td>
            </tr>
            <tr>
                <td>邮箱:</td>
                <td>
                    <input name="email" type="text" th:value="${#request.getAttribute('emp').email}">
                </td>
            </tr>
            <tr>
                <td>操作:</td>
                <td>
                    <input type="submit" value="修改">
                    <a th:href="@{/emp}">返回</a>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>